<?php
require_once 'facebook.php';
require_once 'Zend/Application/Resource/ResourceAbstract.php';

/**
 * Resource for initializing a facebook resource. Please note that use of this 
 * resource requires that facebook.php is available somewhere in your PATH.
 * 
 * @see https://github.com/facebook/php-sdk
 */
class Core_Application_Resource_Facebook
	extends Zend_Application_Resource_ResourceAbstract
{
	/**
	 * Defined by Zend_Application_Resource_Resource
	 *
	 * @return Facebook
	 */
	public function init()
	{
		$options = $this->getOptions();
		
		return new Facebook($options);
	}
}